#!/bin/bash
if [ ! -z $2 ]; then
	echo "connecting disc $2 to $1"
	vboxmanage storageattach $1 --storagectl IDE --port 0 --device 0 --type dvddrive --medium $2
else
	echo "disconnect any disc from $1"
	vboxmanage storageattach $1 --storagectl IDE --port 0 --device 0 --medium "none"
fi

